package com.design03_behavioral.pattern13_observer.example03;

import com.design03_behavioral.pattern13_observer.example02.LotteryResult;

/**
 * @ClassName MQEventListener
 * @Description MQ消息发送事件
 * @Author zhangjunhao
 * @DATE 2023/9/6 21:54
 */
public class MQEventListener implements EventListener {
    @Override
    public void doEvent(LotteryResult result) {
        System.out.println("记录用户摇号结果(MQ), 用户ID:" +
                result.getuId() +
                ",摇号结果:" + result.getMsg());

    }
}
